<#include "common/main.html">
<#macro bodyId>statistics-agent</#macro>
<#macro content>


<div class="col-sm-9 col-sm-offset-3 col-md-10 col-md-offset-2 main ty-common-page">
    <h1 class="page-header">预约汇总报表

    </h1>
    <div class="tool-bar">
        <div class="filter">
            <form action="" method="get" class="J_filterForm" id="statistics-form">
                <div class="form-group">
                    <div class="col-sm-11">

                        <!--<div class="col4">
                            <span class="label-text">年份：</span>
                            <select class="form-control" name="year">
                            	   <option value="" <#if queryDto.year==null>selected="true"</#if>>全部</option>
                            	   <option value="2018" <#if queryDto.year=='2018'>selected="true"</#if>>2018年</option>
                            	   <option value="2019" <#if queryDto.year=='2019'>selected="true"</#if>>2019年</option>
                            	   <option value="2020" <#if queryDto.year=='2020'>selected="true"</#if>>2020年</option>
                            	   <option value="2021" <#if queryDto.year=='2021'>selected="true"</#if>>2021年</option>
                            	   <option value="2022" <#if queryDto.year=='2022'>selected="true"</#if>>2022年</option>
                            	   <option value="2023" <#if queryDto.year=='2023'>selected="true"</#if>>2023年</option>
                            </select>
                        </div>-->

                       
                        <button type="submit" class="btn btn-success J_getExcel" data-action="${rc.contextPath}/statistic/appointmentExport">导出Excel</button>
                        <button type="submit" class="btn btn-success J_search" data-action="${rc.contextPath}/statistic/appointmentList">查询</button>
                    </div>
                </div>
            </form>
        </div>
    </div>
    <div class="table-responsive">
        <table class="table ac-table table-hover">
            <thead>
            <tr>
                <th>预约手机号</th>
                <th>联系人手机号</th>
                <th>联系人姓名</th>
                <th>预约时间</th>
            </tr>
            </thead>
            <tbody>
            <#list appointmentList as dto>
            <tr>
                <td>${dto.transactorPhone}</td>
                <td>${dto.linkmanPhone}</td>
                <td>${dto.linkmanName}</td>
                <td>${dto.createTime?number?number_to_datetime?string("yyyy-MM-dd HH:mm:ss")}</td>
            </tr>
            </#list>
            </tbody>
        </table>
    </div>
    <#include "common/page.html">
</div>

<script>
    var config = {

    }
</script>

</#macro>

<script>
// 	$("[name='provinceId']").change(function () {
// 		$me = $(this);
// 		$me.parents("form").find("[name='cityId']").val("");
// 		$me.parents("form").find("[name='regionId']").val("");
// 		$me.parents("form").submit();
// 	});

// 	$("[name='cityId']").change(function () {
// 		$me = $(this);
// 		$me.parents("form").find("[name='regionId']").val("");
// 		$me.parents("form").submit();
// 	});

// 	$("[name='regionId']").change(function () {
// 		$me = $(this);
// 		$me.parents("form").submit();
// 	});
</script>